<gm:page title="StopOnSomething" authenticate="false">

  
    <!--
       The Advanced Template application demonstrates using a template with
       several controls to create a interactive user experience.
       @author: GME Team
    -->


  <div class="gm-app-header">
    <h1>StopOnSomething</h1>
  </div>

  <!-- List -->

  <gm:list id="mySOSthing_id" template="mySOSthing" data="${mySOSthing_data}" class="gm-noselect" />

  <!-- Template -->

  <gm:template id="mySOSthing">
    <table width="600">
      <thead>
        <tr>
          <td width="150"><gm:header>thing</gm:header></td>
          <td width="250"><gm:header>think</gm:header></td>
          <td width="200"><gm:header>Date</gm:header></td>
        </tr>
      </thead>
      <tfoot>
        <tr class="gm-header">
          <td></td>
          <td colspan="2">
            <gm:create label="Create Item"/>
          </td>
        </tr>
      </tfoot>

      <tbody repeat="true">
        <tr valign="top">
          <td align="center" rowspan="2">
            <!-- gm:image ref="atom:link[@rel='photo']/@href" width="150"/ -->
            <div align="center">
              <gm:rating ref="gd:rating"/>
              <gm:editButtons/>
            </div>
          </td>
          <td><b><gm:text ref="atom:title"/></b></td>
          <td>
            <gm:date ref="gd:when/@time"/>
          </td>
        </tr>
        <tr>
          <td colspan="2">
          <p><gm:textarea ref="atom:content"/></p>
          </td>
        </tr>
        <tr>
          <td colspan="2"></td>
        </tr>
      </tbody>
    </table>
  </gm:template>

  <!-- Data module -->

  <gm:data id="mySOSthing_data" mutable="true">
    <atom:feed>
      <atom:title></atom:title>

      <atom:entry>
        <atom:id>1</atom:id>
        <atom:title>politic</atom:title>
        <atom:link rel="edit" href="1"/>
        <atom:content>
          ...
        </atom:content>
        <gd:rating value="0" min="0" maxgmt="5"/>
        <gd:when time="2007-06-25 23:45 GMT+1"/>
      </atom:entry>

      <atom:entry>
        <atom:id>2</atom:id>
        <atom:title>medias</atom:title>
        <atom:link rel="edit" href="2"/>
        <atom:content>
          ...
        </atom:content>
        <gd:rating value="0" min="0" max="5"/>
        <gd:when time="2007-06-25 20:00 GMT+1"/>
      </atom:entry>

    </atom:feed>
  </gm:data>



</gm:page>